import sys

from config import config
from myutil import globalvar as gl, logs
from PyQt5.QtWidgets import *
from win.main_win import main_win

if __name__ == '__main__':
    gl.__init()
    logs.__init()
    config.__init()
    app = QApplication(sys.argv)
    appWin = main_win()
    sys.exit(app.exec_())

# 转换资源文件
# pyrcc5 ui/apprcc.qrc -o ui/apprcc_rc.py

# 转换ui文件
# python -m PyQt5.uic.pyuic ui/main.ui -o ui/main.py
# python -m PyQt5.uic.pyuic ui/send_feedback_form.ui -o ui/send_feedback_form.py
# python -m PyQt5.uic.pyuic ui/ics_form.ui -o ui/ics_form.py
# python -m PyQt5.uic.pyuic ui/login_form.ui -o ui/login_form.py
# python -m PyQt5.uic.pyuic ui/app_about_form.ui -o ui/app_about_form.py
# 此时还需要修改窗体文件 ui/**.py 的最后一行为下面
# import ui.apprcc_rc

# python -m PyQt5.uic.pyuic ui/main.ui -o ui/main.py
# python -m PyQt5.uic.pyuic ui/now_select_course.ui -o ui/now_select_course.py
# python -m PyQt5.uic.pyuic ui/enable_select_course.ui -o ui/enable_select_course.py
# python -m PyQt5.uic.pyuic ui/free_select_course_form.ui -o ui/free_select_course_form.py
# python -m PyQt5.uic.pyuic ui/buy_jhm_form.ui -o ui/buy_jhm_form.py

# 打包成exe
# pyinstaller -F -w -y -i ./ui/images/icon/Applications.ico -n 安财教务处app_v2.5.1 main.py
